Add support for maxima-mode. Update commentary
authorStephen Eglen <stephen@gnu.org>
Sun, 1 Feb 2004 13:52:06 +0000 (13:52 +0000)
committerStephen Eglen <stephen@gnu.org>
Sun, 1 Feb 2004 13:52:06 +0000 (13:52 +0000)
because info-lookup-symbol is now bound to C-h S.

lisp/info-look.el

index a184567ea9c753a883625e093eabadf11e34866a..89eb1d7e4110e19ecbf015aba3f56cfd16f029b3 100644 (file)
@@ -27,7 +27,7 @@
 ;;; Commentary:
 
 ;; Really cool code to lookup info indexes.
-;; Try especially info-lookup-symbol (aka C-h TAB).
+;; Try especially info-lookup-symbol (aka C-h S).
 
 ;;; Code:
 
@@ -830,6 +830,17 @@ Return nil if there is nothing appropriate in the buffer near point."
              nil; "^ - [^:]+:[ ]+" don't think this prefix is useful here.
              nil)))
 
+(info-lookup-maybe-add-help
+ :mode 'maxima-mode
+ :ignore-case t
+ :regexp "[a-zA-Z_%]+"
+ :doc-spec '( ("(maxima)Function and Variable Index" nil 
+              "^ - [^:]+:[ ]+\\(\\[[^=]*=[ ]+\\)?" nil)))
+
+(info-lookup-maybe-add-help
+ :mode 'inferior-maxima-mode
+ :other-modes '(maxima-mode))
+
 ;; coreutils and bash builtins overlap in places, eg. printf, so there's a
 ;; question which should come first.  Some of the coreutils descriptions are
 ;; more detailed, but if bash is usually /bin/sh on a GNU system then the